


pub static mut RBATIS: Option<rbatis::RBatis> = Option::None;


pub fn init_rbatis_sqlite(db_url: &str)
{
    let db_driver = rbdc_sqlite::driver::SqliteDriver {};
    unsafe { RBATIS = Some(rbatis::RBatis::new()) };
    unsafe {
        RBATIS
            .as_ref()
            .unwrap()
            .init(db_driver, db_url)
            .expect("rbatis init failed");
    }
}


pub fn get_rbatis() -> &'static mut rbatis::RBatis
{
    unsafe { RBATIS.as_mut().unwrap() }
}


